package pl.us.ij.plugins.segmentation.forms;

import com.jgoodies.forms.layout.CellConstraints;
import com.jgoodies.forms.layout.FormLayout;
import pl.us.ij.plugins.segmentation.infrastructure.CategoryInfo;
import pl.us.ij.plugins.segmentation.localization.Localization;

import javax.swing.*;
import java.awt.*;
import java.util.ResourceBundle;

/**
 * Created by IntelliJ IDEA.
 * User: Przemek
 * Date: 2010-05-26
 * Time: 00:11:50
 * To change this template use File | Settings | File Templates.
 */
public class FiltersIntroForm extends CategoryInfo {
    private JPanel introPanel;
    private JTextPane inThisSectionWeTextPane;

    @Override
    public String getTitle() {
        return Localization.getString("filtersIntroForm.title");
    }

    @Override
    public JPanel getPanel() {
        return introPanel;
    }

    @Override
    public String getDescription() {
        return null;
    }

    {
// GUI initializer generated by IntelliJ IDEA GUI Designer
// >>> IMPORTANT!! <<<
// DO NOT EDIT OR ADD ANY CODE HERE!
        $$$setupUI$$$();
    }

    /**
     * Method generated by IntelliJ IDEA GUI Designer
     * >>> IMPORTANT!! <<<
     * DO NOT edit this method OR call it in your code!
     *
     * @noinspection ALL
     */
    private void $$$setupUI$$$() {
        introPanel = new JPanel();
        introPanel.setLayout(new FormLayout("fill:d:grow", "center:d:grow"));
        inThisSectionWeTextPane = new JTextPane();
        inThisSectionWeTextPane.setBackground(UIManager.getColor("Label.background"));
        inThisSectionWeTextPane.setFont(new Font(inThisSectionWeTextPane.getFont().getName(), Font.ITALIC, 13));
        inThisSectionWeTextPane.setText(ResourceBundle.getBundle("pl/us/ij/plugins/segmentation/localization/Localization").getString("filtersInfoForm.description"));
        CellConstraints cc = new CellConstraints();
        introPanel.add(inThisSectionWeTextPane, cc.xy(1, 1, CellConstraints.FILL, CellConstraints.FILL));
    }

    /**
     * @noinspection ALL
     */
    public JComponent $$$getRootComponent$$$() {
        return introPanel;
    }
}
